package com.job.createType.prototype;

import lombok.Data;

/**
 * @Author 王博
 * @DateTime 2025-04-10 08:46
 */
@Data
public class JiangZhuang implements Cloneable{
    private String name;
    private Brand brand;

    public JiangZhuang() {
        System.out.println("构造函数创建了奖状");
    }

    public void show(){
        System.out.println(name+"的"+brand.getName()+"牌子的奖状");
    }

    @Override
    protected JiangZhuang clone() throws CloneNotSupportedException {
        System.out.println("克隆创建了奖状");
        return (JiangZhuang) super.clone();
    }
}
